package com.litt.saap.assistant.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import java.io.Serializable;

/**
 * <br>
 * Table:quickview_adv_filter<br>
 * @author Hibernate Tools 3.4.0.CR1
 * @version 1.0
 * @since May 18, 2015 4:16:49 PM
 */
@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
@Table(name = "quickview_adv_filter")
public class QuickviewAdvFilter implements Serializable {
	/**
	 * UID
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 序号.
	 */
	private Integer id;

	/**
	 * 租户ID.
	 */
	private int tenantId;

	/**
	 * 动态查询ID.
	 */
	private int qvId;

	/**
	 * 字段名.
	 */
	private String fieldName;

	/**
	 * 字段类型.
	 */
	private String fieldType;

	/**
	 * 运算符.
	 */
	private String symbol;

	/**
	 * 字段值.
	 */
	private String fieldValue;

	public QuickviewAdvFilter() {
	}

	public QuickviewAdvFilter(int tenantId, int qvId, String fieldName,
			String fieldType, String symbol, String fieldValue) {
		this.tenantId = tenantId;
		this.qvId = qvId;
		this.fieldName = fieldName;
		this.fieldType = fieldType;
		this.symbol = symbol;
		this.fieldValue = fieldValue;
	}

	/**  
	 * Get 序号.
	 * @return 序号
	 */
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	/**
	 * Set 序号.
	 * @param id 序号
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**  
	 * Get 租户ID.
	 * @return 租户ID
	 */

	@Column(name = "TENANT_ID", nullable = false)
	public int getTenantId() {
		return this.tenantId;
	}

	/**
	 * Set 租户ID.
	 * @param tenantId 租户ID
	 */
	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	/**  
	 * Get 动态查询ID.
	 * @return 动态查询ID
	 */

	@Column(name = "QV_ID", nullable = false)
	public int getQvId() {
		return this.qvId;
	}

	/**
	 * Set 动态查询ID.
	 * @param qvId 动态查询ID
	 */
	public void setQvId(int qvId) {
		this.qvId = qvId;
	}

	/**  
	 * Get 字段名.
	 * @return 字段名
	 */

	@Column(name = "FIELD_NAME", nullable = false, length = 50)
	public String getFieldName() {
		return this.fieldName;
	}

	/**
	 * Set 字段名.
	 * @param fieldName 字段名
	 */
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	/**  
	 * Get 字段类型.
	 * @return 字段类型
	 */

	@Column(name = "FIELD_TYPE", nullable = false, length = 20)
	public String getFieldType() {
		return this.fieldType;
	}

	/**
	 * Set 字段类型.
	 * @param fieldType 字段类型
	 */
	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	/**  
	 * Get 运算符.
	 * @return 运算符
	 */

	@Column(name = "SYMBOL", nullable = false, length = 10)
	public String getSymbol() {
		return this.symbol;
	}

	/**
	 * Set 运算符.
	 * @param symbol 运算符
	 */
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	/**  
	 * Get 字段值.
	 * @return 字段值
	 */

	@Column(name = "FIELD_VALUE", nullable = false, length = 200)
	public String getFieldValue() {
		return this.fieldValue;
	}

	/**
	 * Set 字段值.
	 * @param fieldValue 字段值
	 */
	public void setFieldValue(String fieldValue) {
		this.fieldValue = fieldValue;
	}

}
